package pers.cz.mapper;

import pers.cz.model.Role;
import pers.cz.model.RoleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleMapper {
    int countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int insert(Role record);

    int insertSelective(Role record);

    int updateSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    List<String> selectAllRoleNameByMenuId(Integer menuId);

    List<Role> selectAllRole();

    List<Role> selectRoles();

    Role selectRoleById(Integer roleId);

    List<Role> selectRolesByParentId(Integer parentRoleId);

    List<Role> selectAllParentRoles();

    Integer deleteByPrimaryKey(Integer roleId);
}
